package com.rc.saas.mini.vo.hlhtcec2;

import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * 非标准停止返回结果
 */
@JsonAutoDetect(fieldVisibility= JsonAutoDetect.Visibility.ANY, getterVisibility= JsonAutoDetect.Visibility.NONE)
public class WxStopChargeResult extends StopChargeResult {

    @JsonProperty
    private String FailMsg;

    public String getFailMsg() {
        return FailMsg;
    }

    public void setFailMsg(String failMsg) {
        FailMsg = failMsg;
    }
    public void setFailMsg(int failMsg) {
        switch (failMsg) {
            case 0:
                FailMsg = "无";
                break;
            case 1:
                FailMsg = "此设备不存在";
                break;
            case 2:
                FailMsg = "此设备离线";
                break;
            case 3:
                FailMsg = "余额不足或其它";
                break;
            case 4:
                FailMsg = "余额不足或其它";
                break;
            case 5:
                FailMsg = "上次订单还没结算完";
                break;
            case 10:
                FailMsg = "终端正在服务中，请选择其他终端";
                break;
            case 11:
                FailMsg = "充电枪未与车连接";
                break;
            case 16:
                FailMsg = "已经结束充电，不能重复结束充电";
                break;
            case 17:
                FailMsg = "启动充电失败";
                break;
            case 30:
                FailMsg = "该订单号不存在";
                break;
            case 38:
                FailMsg = "结束充电失败";
                break;
            case 44:
                FailMsg = "有未支付的充电订单,不允许开启充电(上次订单还没结算完，请稍等)";
                break;
            case 70003:
                FailMsg = "暂不支持该站点/桩/枪充电";
                break;
            default:
                FailMsg = "未知";
                break;
        }

    }
}
